package cn.itsource.pojo.app.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 📖：beishan
 * 🗓️：2024/4/10 19:35
 * =====================
 * 预付 前端传入的数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AdvanceVo {
    //预计分钟数
    @NotNull(message = "预计分钟数为空")
    private Integer expectMinutes;
    //开始位置
    @NotEmpty(message = "开始位置为空")
    private String startPlace;

    //结束位置
    @NotEmpty(message = "结束位置为空")
    private String endPlace;

    //里程数
    @NotNull(message = "里程数为空")
    private BigDecimal expectsMileage;

    //车牌号
    @NotEmpty(message = "车牌号为空")
    private String carPlate;

    //车辆类型
    @NotEmpty(message = "车辆类型为空")
    private String carType;

    //开始经度
    @NotNull(message = "开始经度为空")
    private BigDecimal startPlaceLongitude;

    //开始纬度
    @NotNull(message = "开始纬度为空")
    private BigDecimal startPlaceLatitude;

    //结束经度
    @NotNull(message = "结束经度为空")
    private BigDecimal endPlaceLongitude;

    //结束纬度
    @NotNull(message = "结束纬度为空")
    private BigDecimal endPlaceLatitude;
}
